import Vue from 'vue'
import VueStorage from 'vue-ls'
import config from '@/config/defaultSettings'

// base library
import '@/core/lazy_lib/components_use'
import Viser from 'viser-vue'

// ext library
import VueClipboard from 'vue-clipboard2'
import MultiTab from '@/components/MultiTab'
import PageLoading from '@/components/PageLoading'
import PermissionHelper from '@/utils/helper/permission'
import './directives/action'

VueClipboard.config.autoSetContainer = true

Vue.use(Viser)
Vue.use(MultiTab)
Vue.use(PageLoading)
Vue.use(VueStorage, config.storageOptions)
Vue.use(VueClipboard)
Vue.use(PermissionHelper)

import ellipsis from '@/components/Ellipsis'
Vue.component("ellipsis",ellipsis)

import mRangePicker from '@/components/DatePicker/m-range-picker'
Vue.component("m-range-picker",mRangePicker)
import mDatePicker from '@/components/DatePicker'
Vue.component("m-date-picker",mDatePicker)